#include"hook.h"
#include<stdio.h>
MyHook MsgHook;
VOID WINAPI NewSleep(DWORD dwMilliseconds)
{
	printf("Hook Succeeded\n");
	printf("Sleep:%d\n", dwMilliseconds);
	MsgHook.UnHook(L"kernel32.dll", "Sleep");
	printf("UnHook Succeeded\n");
	Sleep(dwMilliseconds);
	MsgHook.Hook(L"kernel32.dll", "Sleep", (PROC)NewSleep);

}
int main() {
	MsgHook.Hook(L"kernel32.dll", "Sleep", (PROC)NewSleep);
	Sleep(500);
}